package com.luoguijia.disk.files.entity;

import java.util.Date;

public class FileEntity {
    private String id;          // 文件唯一标识
    private String name;        // 文件名
    private long size;          // 文件大小
    private Integer isDeleted;  // 是否删除：0-正常，1-回收站
    private Date recycleTime;   // 移入回收站时间
    private String fileName;
    private long fileSize;

    // getter 方法
    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public long getSize() {
        return size;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public Date getRecycleTime() {
        return recycleTime;
    }

    // setter 方法
    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public void setRecycleTime(Date recycleTime) {
        this.recycleTime = recycleTime;
    }
    // 获取文件名
    public String getFileName() {
        return fileName;
    }

    // 设置文件名
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    // 获取文件大小
    public long getFileSize() {
        return fileSize;
    }

    // 设置文件大小
    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }


    // toString 方法（调试时方便打印）


    @Override
    public String toString() {
        return "FileEntity{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", size=" + size +
                ", isDeleted=" + isDeleted +
                ", recycleTime=" + recycleTime +
                ", fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                '}';
    }
}